package controllers

import (
	"strconv"
	"xiaoshuo/models"

	"github.com/gin-gonic/gin"
)

type TestController struct{}

func (test TestController) Test1(c *gin.Context) {
	idStr := c.Param("id")
	id, _ := strconv.Atoi(idStr)

	xiaoHua, _ := models.GetXiaoHuaById(id)

	ReturnSuccess(c, 200, "success", xiaoHua, 1)
}
